#include <stdio.h>

int main(int argc, char const *argv[])
{
    int a = 10;
    int *p = &a;
    printf("a=%d\n", a);
    printf("*p=%d\n", *p);
    printf("p[0]=%d\n", p[0]); //注意：*p=*(p+0)=p[0]
    p[0] = 100;
    printf("a=%d\n", a);
    return 0;
}
